pre {
    overflow-x: hidden;
}
pre .comment {
    border-bottom: 0;
}
code {
    white-space: pre-wrap !important;
    white-space: -moz-pre-wrap !important;
    white-space: -o-pre-wrap !important;
    word-wrap: break-word !important;
}
html {
    height: 100%;
}
body {
    font-family: "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", tahoma, arial, simsun, "宋体";
    background-color: #ededef;
    font-size: 14px;
}
h1 {
    font-size: 18px;
}
h2 {
    font-size: 16px;
}
h3 {
    font-size: 14px;
}
h4, h5, h6 {
    font-size: 100%;
}
a, a:link, a:visited, a:focus {
    color: #444;
}
a:hover, a:active {
    color: #7594B3;
}
a, a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    outline: none;
}
li {
    list-style-type: none;
}
.main, .top .container-fluid, .cover, .footer {
    max-width: 1024px;
    margin: 0 auto;
}

/*公用*/
.space-10 {
    height: 10px;
}
.word-wrap {
    word-wrap: break-word;
    word-break: break-all;
}
.mr-10 {
    margin-right: 10px;
}
.mt-10 {
    margin-top: 10px;
}
.mb-10 {
    margin-bottom: 10px;
}
.no-margin {
    margin: 0;
}

/* 顶部 */
.top {
    position: fixed;
    padding: 20px;
    background: #24292c;
    border-radius: 0;
    width: 100%;
    top: 0;
    z-index: 999;
}
.top .navbar-toggle, .navbar-toggle .icon-bar {
    border: 1px solid #fff;
}
.top .navbar-header {
    margin-right: 20px !important;
}
.top .navbar-brand {
    width: 220px;
    height: 44px;
    padding: 0;
    outline: 0;
}
.top .navbar-brand img {
    width: 70%;
    height: 70%;
    margin: 5px 0 5px 20px;
}
.top .btn .label, .top .nav-primary>li>a>.label {
    background-color: transparent;
    color: #bfbfbf;
    border: 1px solid #bfbfbf;
    padding: 2px;
}
.top .nav>li>a {
    color: #999;
}
.top .nav>li>a:focus, .top .nav>li>a:hover {
    color: #fff;
    background-color: transparent;
}
.top .nav .open>a, .top .nav .open>a:focus, .top .nav .open>a:hover {
    background-color: transparent;
}

/*主体*/
.main {
    margin-top: 110px;
}
.main .list {
    padding: 0;
}
.main .list header {
    border: 0;
}
.main .list .post-title {
    line-height: 30px;
    height: 30px;
    color: #F78D38;
}
.main .items .item {
    background-color: #fff;
    margin: 0 0 16px 65px;
    padding: 20px;
    border-radius: 2px;
    border: 1px solid transparent;
    border-color: #ddd;
}
.main .item-heading, .main .item-content, .main .item-footer {
    margin: 10px 0;
}
.main .item-heading img {
    width: 60px;
    height: 60px;
    border-radius: 2px;
    position: absolute;
    left: 10px;
    margin-top: -30px;
    border: 1px solid transparent;
    border-color: #ddd;
}
.main .item-content {
    min-height: 160px;
}
.main .item-content h2 {
    margin-bottom: 30px;
}
.main .item-footer {
    font-size: 12px;
}
.main .item-footer .tag {
    background-color: #fff;
    border: 1px dotted #dedede;
}
.main .item-footer .tag:hover {
    background-color: grey;
    border: 1px dotted #dedede;
}
.main .list footer {
    padding-left: 63px;
}
.main .article {
    background-color: #fff;
    margin-top: 56px;
    position: relative;
    border-radius: 2px;
    border: 1px solid transparent;
    border-color: #ddd;
}
.main .article>header>dl {
    border-radius: 2px;
}
.main article .previous a, .main article .next a {
    max-width: 50%;
}
.main article .previous i, .main article .next i {
    margin: 2px 5px;
}
.main article .avatar {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 20px;
    top: -30px;
    border-radius: 2px;
    border: 1px solid transparent;
    border-color: #ddd;
}
.main .author {
    min-height: 200px;
    padding: 50px;
    margin: 55px 0 0 80px;
}
.main .author .avatar {
    width: 60px;
    height: 60px;
    border-radius: 2px;
    position: absolute;
    left: 22px;
    margin-top: -50px;
    border: 1px solid transparent;
    border-color: #ddd;
}
#searchModal section {
    max-height: 520px;
    overflow-y: auto;
}
#searchModal .modal-dialog {
    border-radius: 2px;
}

/*挂件*/
.widget {
    padding-top: 56px;
}
.widget .panel {
    border-radius: 2px;
}
.widget .tag-label {
    margin-bottom: 5px;
    border-radius: 2px;
}
.widget .panel-body {
    word-wrap: break-word;
    word-break: break-all;
}
.widget .panel>.panel-heading {
    color: gray;
    background-color: #fafafa;
}
.widget .social-logo {
    margin: 10px;
}
.widget .social-logo .icon {
    font-size: 20px;
}
.widget .post-toc ul {
    padding-left: 0;
}
.widget .post-toc li.toc-active a, .post-toc li li.toc-active a {
    font-weight: bold;
}
.widget .authorinfo-avatar img {
    margin: 0 auto;
    display: block;
}

/*底部*/
.footer, .footer a {
    text-align: center;
    color: #999;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px #fff;
    font-size: 12px;
}
.footer .qrc-alipay, .footer .qrc-wechatpay {
    width: 100px;
    height: 100px;
    display: inline-block;
    margin: 0 5px;
}

/*backTop*/
.backTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 50px;
    display: none;
}
.backTop .btn {
    margin-top: 2px;
    height: 50px;
    display: block;
    padding: 0;
    width: 100%;
    opacity: .4;
}
.btn-inverse {
    background: #666;
    color: #FFF !important;
}
.backTop .btn:hover {
    background: #999;
    opacity: .9;
    color: #FFF !important;
}
.backTop .btn i {
    position: relative;
    top: -1px;
}

/*多说*/
.ds-comment {
    border: 0 !important;
}

/*toc*/
li[class^="toc"] a {
    font-size: 12px;
}
li[class^="toc"] a:before {
    content: '\e6bb';
    font-family: ZenIcon;
    margin-right: 5px;
}

/*大屏幕*/
@media (min-width:992px) {
    .posttoc-fixed {
        top: 100px;
        width: 236px;
        position: fixed;
        z-index: 2;
    }
    .widget .authorinfo-avatar, .widget .authorinfo-info {
        display: block;
    }
    .widget .authorinfo-avatar {
        margin-bottom: 10px;
    }
}

/*小屏幕*/
@media (max-width:768px) {
    .top {
        padding: 0;
    }
    .main {
        margin-top: 60px;
    }
    .main .item-heading img {
        visibility: hidden;
    }
    .main .items .item {
        margin: 0 0 16px 0;
    }
    .widget .authorinfo-avatar, .widget .authorinfo-info {
        display: inline-block;
        vertical-align: top;
    }
    .widget .authorinfo-avatar {
        max-width: 33%;
    }
}